package com.zhiying.web.service.impl;

import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class RedisService {
    @Resource
    private RedisTemplate<String,String> stringRedisTemplate;

    public void setTest(){
        stringRedisTemplate.opsForValue().set("test","helloRedis");
    }


}
